﻿package java_45;

public class Printer {
	InkBox inlBox;
	Paper paper;
	public void setInkBox(InkBox inkBox){
		this.inlBox=inkBox;
	}
	public void setPaper(Paper paper){
		this.paper=paper;
	}
	public void print(){
		System.out.println("使用" + setInkBox.getColor() + "墨盒在" + paper.getSize() + "纸张上打印");
	}
}